//
//  WYCbankViewController.m
//  掌上还
//
//  Created by 王晓民 on 2018/1/13.
//  Copyright © 2018年 中企互联. All rights reserved.
//

#import "WYCbankViewController.h"

@interface WYCbankViewController ()<UIWebViewDelegate>
@property (nonatomic,strong)UIWebView *bankwebView;
@property (nonatomic,strong)NSArray  *addressArr;

@end

@implementation WYCbankViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupNav];
    _addressArr = @[@"xy",@"pf",@"ms",@"jt",@"gd",@"gdbj",@"pa",@"gs",@"msxsk"];
    _bankwebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];

//    NSString * str = [NSString stringWithFormat:@"http://www.365creditbank.com/index/index?id=4601&card=%@",_addressArr[_number]];
//    NSLog(@"wqc=======%@",str);
    
    NSString  *str = @"https://ccshop.cib.com.cn:8010/application/cardapp/newfast/ApplyCard/toSelectCard?id=7537a1c1d4284eddb93b34f1cf22c1fe";
    NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:str]];
    [self.view addSubview: _bankwebView];
    [_bankwebView loadRequest:request];
    
}
//Nav字体颜色+ 背景
- (void)setupNav {
    self.navigationItem.title = @"兴业银行";
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    [self.navigationController.navigationBar setBarTintColor:wycMain];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
